# Virtual Router Simulator 
#
# Copyright (C) 2009-2010 VRSim Project
# Author: Choonho Son <choonho@kt.com>
# URL: <http://vrsim.googlecode.com>
# For license information, see LICENSE.TXT
#

import VRSim.Globals as globals
from VRSim.Utils import debug
from VRSim.Node.Cisco import Cisco
from VRSim.Node.CiscoDomain7200 import CiscoDomain7200

import subprocess as sub

class Cisco_C7200(Cisco,  CiscoDomain7200):
    def __init__(self,  nodeid):
        Cisco.__init__(self,  nodeid)
        CiscoDomain7200.__init__(self,  nodeid)
        self.model = "Cisco 7200"
        self.hostname = "Cisco"
        
        # update initial hdd image
        self.devices.hdd.source = "%s/%s/%s" % (globals.BASEDIR, globals.GApp.userid, globals.IMG_C7200)
    

        # TEMP
        self.cmd1 = "dynamips /data/c7200.bin -t npe-400 -p 0:C7200-IO-FE -s 0:0:udp:10001:127.0.0.1:10000"

    #def start(self):
    #    print "Cisco Start"
    #    sub.Popen("xterm -T " + self.hostname + " -e '" + self.cmd1 + "' >  /dev/null 2>&1 &",  shell = True)
